package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.entity.Dish;

import java.util.List;

/**
 * @author Xiao
 * @date 2021/9/25
 */
public interface DishService extends IService<Dish> {
    int getCountByCategoryId(Long categoryId);
    boolean addDish(DishDto dishDto);
    Page<DishDto> getDishPage(Integer page, Integer pageSize, String name);
    DishDto queryDishById(Long id);
    boolean editDish(DishDto dishDto);
    boolean dishStatusByStatus(Integer status, List<Long> ids);
    boolean deleteDish(List<Long> ids);
    List<DishDto> queryDishList(Dish dish);
}
